import React from "react";
import { useHistory } from "react-router-dom";
import UserMsg from "../../outUser/userMsg/UserMsg";
import Btn from "../../../components/btn/Btn";


function Order() {
  const history = useHistory();

  const money = url=>{
    history.push(url+window.location.search,history.location.state);
  }
  return (
      <div>
        <UserMsg msg={history.location.state} />

        <div className='g-abs g-b0 g-l0 g-w100'>
          <Btn type='warning' onClick={()=>{money('/goods')}}>项目开单</Btn>
          <Btn type='primary' onClick={()=>{money('/goods/card')}}>储蓄充卡</Btn>
        </div>
      </div>
  )
}

export default Order;